<template>
    <div class="preview-box">
        <div v-html="content"></div>
    </div>
</template>
<script>
    export default{
        data(){
            return{
                content:'',
            }
        },
        created(){
            console.log(this.$route.params)
            this.content = this.$route.params.data;
        }
    }
</script>
<style scoped lang="less">
    .preview-box{
        width: 80%;
        height: 100%;
        display:table;
        padding: 1% 2%;
        border-radius: 10px;
        background: #fff;
        margin: 10px auto;
    }
</style>
